package com.badibadi.uniclubber;

import com.badibadi.activity.BaseActivity;
import com.badibadi.mytools.DisplayUtil;
import com.badibadi.mytools.ImageTools;
import com.google.zxing.WriterException;

import android.os.Bundle;
import android.app.Activity;
import android.graphics.Bitmap;
import android.view.Menu;
import android.widget.ImageView;

public class ShowErWeiMaActivity extends BaseActivity {

	ImageView iv_showErWeiMa;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		goToTheTitle();
		setContentView(R.layout.activity_show_er_wei_ma);
		iv_showErWeiMa=(ImageView)this.findViewById(R.id.erweima);
		String erweima=getIntent().getStringExtra("erweima");
		try {
			Bitmap bmp=ImageTools.Create2DCode(erweima, DisplayUtil.dip2px(this, 150),DisplayUtil.dip2px(this, 150));
			iv_showErWeiMa.setImageBitmap(bmp);
		} catch (WriterException e) {
			// TODO Auto-generated catch block
			   
		}
		
	}



}
